package com.zlm.custom.map;

import cn.hutool.core.date.StopWatch;

/**
 * @author zlm
 * @date 2025/4/26
 */
public class Main {

    public static void main(String[] args) {
        MyHashMap<String, String> myHashMap = new MyHashMap<>();
        int count = 100000;
        StopWatch stopWatch = new StopWatch();
        stopWatch.start();
        for (int i = 0; i < count; i++) {
            myHashMap.put(String.valueOf(i),String.valueOf(i));
        }

        System.out.println(myHashMap.size());

        myHashMap.remove("8");
        System.out.println(myHashMap.get("8"));
        stopWatch.stop();
        System.out.println(stopWatch.getTotalTimeSeconds());
    }
}
